package stu.kurs.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;
import stu.kurs.Constants;




@Entity
@Table(name = "stavki")
public class Stavki extends DomainObject {

	
	private static final long serialVersionUID = -1517388651489875711L;
	
	@Column (name = "many", nullable = false)
	  private Integer many;
	
	@Column (name = "status", nullable = false)
	  private Integer status;
	
	@Column (name = "stavka", nullable = false)
	  private Integer stavka;
	
	@ManyToOne
	@JoinColumn (name = "user_id")
	private User user;
	
	@ManyToOne
	@JoinColumn (name = "match_id")
	private Match match;

	
	public Stavki(){
		super();
	}

	
	
	/**
	 * @param many
	 * @param stavka 
	 * @param status
	 */
	public Stavki(Integer many, Integer stavka) {
		super();
		this.many = many;
		this.stavka = stavka;
		this.status = Constants.STATUS_STAVKA_UNDEFIND;
	}
	
	
	public Integer getMany() {
		return many;
	}

	public void setMany(Integer many) {
		this.many = many;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	
	public Integer getStavka() {
		return stavka;
	}

	public void setStavka(Integer stavka) {
		this.stavka = stavka;
	}
	
	
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Match getMatch() {
		return match;
	}

	public void setMatch(Match match) {
		this.match = match;
	}

	
}
